package com.three.iot.api;

import com.github.pagehelper.Page;
import com.three.iot.commons.dto.UserMsgCondDto;
import com.three.iot.commons.dto.UserMsgCreateDto;
import com.three.iot.commons.dto.UserMsgResultDto;
import com.three.iot.commons.enums.Result;

/**
 * @author luiz
 * @Title: UserMsgService
 * @ProjectName iot
 * @Description: TODO
 * @date 2019-04-08 10:48
 */
public interface UserMsgService {
    Result create(UserMsgCreateDto userMsgCreateDto);

    Page<UserMsgResultDto> findByRecvUserNo(UserMsgCondDto userMsgCondDto);

    Page<UserMsgResultDto> findBySendUserNo(UserMsgCondDto userMsgCondDto);

    UserMsgResultDto findByMsgNo(String msgNo);
}
